package com.ewivt.excel.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class LocationExcel{
    private long id;
    private String pointNumber;
    private String pointName;
    private String address;
    private double longitude;
    private double latitude;
    private double capacity;
    private double frequency;
    private String passCondition;
    public Location toLocation(){
        Location location = new Location();
        location.setLocationName(this.pointName);
        location.setId(this.id);
        location.setLongitude(this.longitude);
        location.setLatitude(this.latitude);
        location.setSeq(this.pointNumber);
        location.setBlock(this.address);
        return location;
    }
}